using System.Threading.Tasks;
using JGSY.CMS.LowCode.Platform.Application.Interfaces;
using JGSY.CMS.LowCode.Platform.Application.DTOs;

namespace JGSY.CMS.LowCode.Platform.Application.Services
{
    /// <summary>
    /// 监控服务。
    /// 提供系统告警功能，支持发送告警消息到各种平台。
    /// </summary>
    [JGSY.CMS.LowCode.Platform.Infrastructure.Services.LogOperation]
    public class MonitorService : IMonitorService
    {
        /// <summary>
        /// 发送告警消息
        /// </summary>
        /// <param name="message">告警消息内容</param>
        /// <param name="log">相关的审计日志（可选）</param>
        /// <returns>发送任务</returns>
        public async Task SendAlertAsync(string message, AuditLogDto? log = null)
        {
            // 可扩展：推送到告警平台、邮件、短信等
            await Task.CompletedTask;
        }
    }
}
